package com.ybxx.base.model;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.ybxx.core.model.BaseModel;
import com.ybxx.system.model.DataRights;

@Entity
@Table(name="tbl_base_rule")
public class Rule extends BaseModel {
	@Id
	private String rcode;
	private String rcontent;
	private String rcapity;
	private String ischar;
	private String start;
	private String incre;
	@OneToMany(targetEntity=RuleValue.class,cascade={CascadeType.ALL},mappedBy="rule",fetch = FetchType.LAZY)
	private Set<RuleValue> rvs=new HashSet<RuleValue>();
	public String getRcode() {
		return rcode;
	}
	public void setRcode(String rcode) {
		this.rcode = rcode;
	}
	public String getRcontent() {
		return rcontent;
	}
	public void setRcontent(String rcontent) {
		this.rcontent = rcontent;
	}
	public String getRcapity() {
		return rcapity;
	}
	public void setRcapity(String rcapity) {
		this.rcapity = rcapity;
	}
	public String getIschar() {
		return ischar;
	}
	public void setIschar(String ischar) {
		this.ischar = ischar;
	}
	public String getStart() {
		return start;
	}
	public void setStart(String start) {
		this.start = start;
	}
	public String getIncre() {
		return incre;
	}
	public void setIncre(String incre) {
		this.incre = incre;
	}
	public Set<RuleValue> getRvs() {
		return rvs;
	}
	public void setRvs(Set<RuleValue> rvs) {
		this.rvs = rvs;
	}
	
	
}

